using System;
using System.Collections.Generic;

namespace InfiniTec.Exchange.Notifications
{
	/// <summary>
	/// Contains information about <see cref="Subscription"/> instance where the re-registration process failed during a call to <see cref="SubscriptionCollection.RestartAsync"/>.
	/// </summary>
	public sealed class SubscriptionRestartErrorSummary
	{
		/// <summary>
		/// Gets a list of <see cref="Subscription"/> instances and the reason why the subscribe request failed.
		/// </summary>
		/// <value>The errors.</value>
		public Dictionary<Subscription, Exception> Errors { get; private set; }

		/// <summary>
		/// Initializes a new instance of the <see cref="SubscriptionRestartErrorSummary"/> class.
		/// </summary>
		/// <param name="errors">The errors.</param>
		public SubscriptionRestartErrorSummary(Dictionary<Subscription, Exception> errors)
		{
			Errors = errors;
		}
	}

}